package com.sean.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.*;

@RestController
public class GreetingController {

    @RequestMapping(value = "/hello", method = RequestMethod.GET)
    @ResponseBody
    public String hello(@RequestParam String name) {
        System.out.println("Hello");
        //return new Greeting(counter.incrementAndGet(), String.format(template, name));
        return "Hello " + name;
    }
}
